package com.yjt.fresh.adpater;

import android.app.Activity;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.yjt.fresh.R;

/**
 * 轮播图适配器
 * Created by UPC on 2018/6/10.
 */

public class AdpBanner extends RecyclerView.Adapter {

    private final Activity mActivity;

    public AdpBanner(Activity activity) {
        mActivity = activity;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new VH(View.inflate(mActivity, R.layout.app_banner_item_frghome,null));
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 3;
    }

    private class VH extends RecyclerView.ViewHolder{

        public VH(View itemView) {
            super(itemView);
        }
    }
}
